Computing the coefficients for the power series solution of the Lane-Emden equation with the Python library SymPy

نویسنده

  • Klaus Rohe
چکیده

It is shown how the Python library Sympy can be used to compute symbolically the coefficients of the power series solution of the Lane-Emden equation (LEE). Sympy is an open source Python library for symbolic mathematics. The power series solutions are compared to the numerically computed solutions using matplotlib. The results of a run time measurement of the implemented algorithm are discussed at the end. Derivation of the recurrence formulas for the coefficients of the power series solution of the LEE In stellar physics the LEE is a second order nonlinear ordinary differential equation (ODE) which describes the internal state of a gaseous polytrophic sphere of index , for details see reference (1), chapter 4. The LEE reads as follows: (1) ( ( )) [ ( )] or

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Numerical Solution of the Lane-Emden Equation Based on DE Transformation via Sinc Collocation Method

In this paper‎, ‎numerical solution of‎ ‎general Lane-Emden equation via collocation method based on‎ ‎Double Exponential DE transformation is considered‎. ‎The‎ ‎method converts equation to the nonlinear Volterra integral‎ ‎equation‎. ‎Numerical examples show the accuracy of the method.‎ ‎Also‎, ‎some remarks with respect to run-time‎, computational cost‎ ‎and implementation are discussed.

متن کامل

Solving nonlinear Lane-Emden type equations with unsupervised combined artificial neural networks

In this paper we propose a method for solving some well-known classes of Lane-Emden type equations which are nonlinear ordinary differential equations on the semi-innite domain. The proposed approach is based on an Unsupervised Combined Articial Neural Networks (UCANN) method. Firstly, The trial solutions of the differential equations are written in the form of feed-forward neural networks cont...

متن کامل

A Third-degree B-spline Collocation Scheme for Solving a Class of the Nonlinear Lane–-Emden Type Equations

In this paper, we use a numerical method involving collocation method with third B-splines as basis functions for solving a class of singular initial value problems (IVPs) of Lane--Emden type equation. The original differential equation is modified at the point of singularity. The modified problem is then treated by using B-spline approximation. In the case of non-linear problems, we first line...

متن کامل

MODIFICATION OF THE OPTIMAL HOMOTOPY ASYMPTOTIC METHOD FOR LANE-EMDEN TYPE EQUATIONS

In this paper, modication of the optimal homotopy asymptotic method (MOHAM) is appliedupon singular initial value Lane-Emden type equations and results are compared with the available exactsolutions. The modied algorithm give the exact solution for dierential equations by using one iterationonly.

متن کامل

New Solutions for Singular Lane-Emden Equations Arising in Astrophysics Based on Shifted Ultraspherical Operational Matrices of Derivatives

In this paper, the ultraspherical operational matrices of derivatives are constructed. Based on these operational matrices, two numerical algorithms are presented and analyzed for obtaining new approximate spectral solutions of a class of linear and nonlinear Lane-Emden type singular initial value problems. The basic idea behind the suggested algorithms is basically built on transforming the eq...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • CoRR

دوره abs/1409.2008  شماره 

صفحات  -

تاریخ انتشار 2014